﻿using HeadFirst._02.Observer.Observer.Interface;
using System;
using System.Collections.Generic;
using System.Text;

namespace HeadFirst._02.Observer.Subjects.Interfaces
{
    public interface Subject
    {
        /// <summary>
        /// 注册
        /// </summary>
        void RegisterObserver(IObserverable o);
        /// <summary>
        /// 取消注册
        /// </summary>
        void RemoveObserver(IObserverable o);
        /// <summary>
        /// 通知所有注册者
        /// </summary>
        void NotifyObservers();
    }
}
